/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.storage.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 会员Entity
 */
@Table(name="biz_member", alias="a", columns={
		@Column(name="id", attrName="id", label="唯一标识", isPK=true),
		@Column(name="platform", attrName="platform", label="平台"),
		@Column(name="type", attrName="type", label="类型"),
		@Column(name="phone", attrName="phone", label="手机号", queryType=QueryType.LIKE),
		@Column(name="union_id", attrName="unionId", label="微信UnionId"),
		@Column(name="open_id", attrName="openId", label="微信OpenId"),
		@Column(name="nick_name", attrName="nickName", label="昵称", queryType=QueryType.LIKE),
		@Column(name="avatar", attrName="avatar", label="头像"),
		@Column(name="balance", attrName="balance", label="余额"),
		@Column(name="is_bind_phone", attrName="isBindPhone", label="是否绑定手机"),
		@Column(name="is_bind_wechat", attrName="isBindWechat", label="是否绑定微信"),
		@Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false),
		@Column(name="update_by", attrName="updateBy", label="更新者", isQuery=false),
		@Column(name="update_date", attrName="updateDate", label="更新时间", isQuery=false),
	}, orderBy="a.update_date DESC"
)
public class Member extends DataEntity<Member> {
	
	private static final long serialVersionUID = 1L;
	private String platform;		// 平台【APP或H5】
	private String type;		// 类型
	private String phone;		// 手机号
	private String unionId;		// 微信UnionId
	private String openId;		// 微信OpenId
	private String avatar;		// 头像
	private String nickName;		// 昵称
	private String name;		// 名称
	private Double balance;		// 余额
	private Boolean isBindPhone;    //是否绑定手机
	private Boolean isBindWechat;   //是否绑定微信
	
	public Member() {
		this(null);
	}

	public Member(String id){
		super(id);
	}

	public String getPlatform() {
		return platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getUnionId() {
		return unionId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getBalance() {
		return balance;
	}

	public void setBalance(Double balance) {
		this.balance = balance;
	}

	public Boolean getIsBindPhone() {
		return isBindPhone;
	}

	public void setIsBindPhone(Boolean isbindPhone) {
		this.isBindPhone = isbindPhone;
	}

	public Boolean getIsBindWechat() {
		return isBindWechat;
	}

	public void setIsBindWechat(Boolean isBindWechat) {
		this.isBindWechat = isBindWechat;
	}
}
